package com.alibobo.utils.calendar;

import java.util.Calendar;
import java.util.Date;

public class YMDHMS {
	public int year;
	public int month;
	public int day;
	public int hour;
	public int minute;
	public int second;

	public YMDHMS(Date dt) {
		Calendar c=Calendar.getInstance();
		c.setTime(dt);
		year=c.get(Calendar.YEAR);
		month=c.get(Calendar.MONTH)+1;
		day=c.get(Calendar.DAY_OF_MONTH);
		hour=c.get(Calendar.HOUR_OF_DAY);
		minute=c.get(Calendar.MINUTE);
		second=c.get(Calendar.SECOND);
	}

}
